from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep


driver = webdriver.Firefox()
driver.maximize_window()
driver.get('file:///D:/qq/Frame.html')
sleep(2)
# 进入frame框架
f = driver.find_element(By.XPATH, '//*[@id="search"]')
driver.switch_to.frame(f)
sleep(2)
driver.find_element(By.XPATH, '/html/body/div/div[2]/div[4]/form/span[1]/input').send_keys('ui自动化测试')
sleep(2)
driver.find_element(By.ID, 'stb').click()

sleep(10)




